﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MENU.aspx.cs" Inherits="ZHONGLANGWEBUI.ZHONGLANG.SYS.MENU" %>
<%@ Register Src="../../ZhongLang/TT_DGHEADPAGE.ascx" TagName="PagerNavigation" TagPrefix="ucPage" %>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title>TT</title>
    <script type="text/javascript" src="../../ZhongLang/CSSJS/PageScript.js"></script>
    <script src="../../ZhongLang/CSSJS/My97DatePicker/WdatePicker.js"></script>
    <link href="../../ZhongLang/CSSJS/style.css?TT=CSS20161107" rel="stylesheet" />
    <link href="../../cssjs/css/bootstrap.min.css?v=3.3.6" rel="stylesheet" />
    <link href="../../cssjs/css/plugins/iCheck/custom.css" rel="stylesheet" />
    <link href="../../cssjs/css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <link href="../../cssjs/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" />
    <link href="../../cssjs/css/animate.min.css" rel="stylesheet" />
    <link href="../../cssjs/css/style.min.css?v=1.0.0" rel="stylesheet" />
</head><body class="gray-bg"><div class="wrapper wrapper-content animated fadeInRight"><form id="frmTT" name="master" runat="server" role="form" class="form-inline">
<!-------------------------------------------------------------------------------------------------->
<div class="row" id="tabQuery" runat="server"><div class="col-sm-12"><div class="float-e-margins"><div class="ibox-content">
    <div class="form-group">
        <label>菜单编号前缀:</label><asp:TextBox ID="txtQMENUID" runat="server" CssClass="form-control"  MaxLength="3"  Width="50px" />
        <label>菜单名称/标题:</label><asp:TextBox ID="txtQMENUNAME" runat="server" CssClass="form-control" MaxLength="32" />  
    </div>
    <asp:Button ID="btnQuery" runat="server" CommandName="查询" Text="查询" CssClass="btn btn-w-m btn-outline btn-primary" OnClick="btn_Click" /> 
    <asp:Button ID="btnSelect" runat="server" CommandName="批量修改" Text="勾选修改" CssClass="btn btn-w-m btn-outline btn-primary" OnClick="btn_Click" /> 
    <a href="http://v3.bootcss.com/components/" target="_blank"> 样式修改说明 </a>
</div></div></div></div>
<!-------------------------------------------------------------------------------------------------->
<div style="overflow: auto; width: 100%;"><div id="tabShow" runat="server" style="overflow: auto; width: 100%;"><ucPage:PagerNavigation ID="pgShow" runat="server" />
    <asp:GridView ID="dgList" runat="server" Style="width: 100%" AutoGenerateColumns="False" DataKeyNames="MENUID"
        OnRowCommand="dgList_RowCommand" OnRowDataBound="dgList_RowDataBound" OnSorting="dgList_Sorting" AllowSorting="true">
        <HeaderStyle CssClass="Gv_HeaderStyle" /><RowStyle CssClass="Gv_RowStyle" /><AlternatingRowStyle CssClass="Gv_AlternateStyle" />
        <Columns>
            <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                <HeaderTemplate><input type="checkbox" onclick="dgListSelectAll(this,'ckID')" /></HeaderTemplate>
                <ItemTemplate><asp:CheckBox id="ckID" runat="server" type="checkbox"  /></ItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField><ItemStyle HorizontalAlign="Center" /><HeaderTemplate>序</HeaderTemplate><ItemTemplate>
                    <label><%# this.dgList.PageIndex * this.dgList.PageSize + this.dgList.Rows.Count + 1%></label>
                </ItemTemplate></asp:TemplateField>
            
            <asp:BoundField DataField="MENUID" HeaderText="菜单编号" SortExpression="MENUID" ItemStyle-HorizontalAlign="Center" />
            <asp:TemplateField HeaderText="菜单名称" ItemStyle-HorizontalAlign="Center" ><ItemTemplate>
                    <asp:TextBox ID="txtEMENUNAME" Text='<%#Eval("MENUNAME")%>' runat="server" MaxLength="16" CssClass="input_box" />
                </ItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderText="分页记录" ItemStyle-HorizontalAlign="Center"><ItemTemplate>
                    <asp:TextBox ID="txtEPAGECOUNT" Text='<%#Eval("PAGECOUNT")%>' runat="server" MaxLength="4" CssClass="input_box" onkeyup="ClearNoNumM(this)" />
                </ItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderText="排序" ItemStyle-HorizontalAlign="Center"><ItemTemplate>
                    <asp:TextBox ID="txtEMENUORDER" Text='<%#Eval("MENUORDER")%>' runat="server" MaxLength="8" CssClass="input_box" />
                </ItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderText="样式" ItemStyle-HorizontalAlign="Center"><ItemTemplate><i class='<%#Eval("MENUIMGCSS")%>'></i></ItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderText="修改样式" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="230px"><ItemTemplate>
                    <asp:TextBox ID="txtEMENUIMGCSS" Text='<%#Eval("MENUIMGCSS")%>' runat="server" MaxLength="32" CssClass="input_box"  Width="180px"  /> 
                </ItemTemplate></asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center"><ItemTemplate>
                    <asp:LinkButton ID="lbtnB" Text="  修改" CssClass="btn btn-warning fa fa-warning " runat="server" CommandArgument='<%#Eval("MENUID")%>' OnClientClick="return confirm('您确定修改该参数吗？')" CommandName="修改" />
                </ItemTemplate></asp:TemplateField>
            
            <asp:BoundField DataField="MENUNAME" HeaderText="菜单名称" Visible="false" />
            <asp:BoundField DataField="PAGECOUNT" HeaderText="分页记录" Visible="false" />
            <asp:BoundField DataField="MENUORDER" HeaderText="排序" Visible="false" />
            <asp:BoundField DataField="MENUIMGCSS" HeaderText="样式" Visible="false" />

            <asp:BoundField DataField="MENUPATH" HeaderText="对应路径" SortExpression="MENUPATH" ItemStyle-HorizontalAlign="Left" />
            <asp:BoundField DataField="UPDATEMANNAME" HeaderText="操作人" SortExpression="UPDATEMANNAME" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="UPDATETIME" HeaderText="操作时间" SortExpression="UPDATETIME" ItemStyle-HorizontalAlign="Center" /> 
        </Columns>
    </asp:GridView> 
</div></div> 
<!------------------------------------------------------------------------------------------------------------------->
</form></div>
<script src="../../cssjs/js/jquery.min.js?v=2.1.4"></script>
<script src="../../cssjs/js/bootstrap.min.js?v=3.3.6"></script>
<script src="../../cssjs/js/content.min.js?v=1.0.0"></script>
<script src="../../cssjs/js/plugins/iCheck/icheck.min.js"></script>
<script src="../../cssjs/js/plugins/sweetalert/sweetalert.min.js"></script>
<script> $(document).ready(function () { $(".i-checks").iCheck({ checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green", }) });</script>
</body></html> 